package com.cxs.dto;

import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * news_comment
 * @author 
 */
@Data
public class CommentDTO{

    private Long id;

    @NotNull(message = "新闻id不能为空")
    private Long newId;

    @NotBlank(message = "评论内容不能为空")
    private String content;

    @NotBlank(message = "评论人不能为空")
    private String author;


    private Date createDate = new Date();

}